package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchMonthlyPressureQualifiedRateReportsMapper;
import com.ruoyi.system.domain.DispatchMonthlyPressureQualifiedRateReports;
import com.ruoyi.system.service.IDispatchMonthlyPressureQualifiedRateReportsService;

/**
 * 压力合格率月报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchMonthlyPressureQualifiedRateReportsServiceImpl implements IDispatchMonthlyPressureQualifiedRateReportsService 
{
    @Autowired
    private DispatchMonthlyPressureQualifiedRateReportsMapper dispatchMonthlyPressureQualifiedRateReportsMapper;

    /**
     * 查询压力合格率月报
     * 
     * @param monthlyPressureQualifiedRateReportsId 压力合格率月报主键
     * @return 压力合格率月报
     */
    @Override
    public DispatchMonthlyPressureQualifiedRateReports selectDispatchMonthlyPressureQualifiedRateReportsByMonthlyPressureQualifiedRateReportsId(Long monthlyPressureQualifiedRateReportsId)
    {
        return dispatchMonthlyPressureQualifiedRateReportsMapper.selectDispatchMonthlyPressureQualifiedRateReportsByMonthlyPressureQualifiedRateReportsId(monthlyPressureQualifiedRateReportsId);
    }

    /**
     * 查询压力合格率月报列表
     * 
     * @param dispatchMonthlyPressureQualifiedRateReports 压力合格率月报
     * @return 压力合格率月报
     */
    @Override
    public List<DispatchMonthlyPressureQualifiedRateReports> selectDispatchMonthlyPressureQualifiedRateReportsList(DispatchMonthlyPressureQualifiedRateReports dispatchMonthlyPressureQualifiedRateReports)
    {
        return dispatchMonthlyPressureQualifiedRateReportsMapper.selectDispatchMonthlyPressureQualifiedRateReportsList(dispatchMonthlyPressureQualifiedRateReports);
    }

    /**
     * 新增压力合格率月报
     * 
     * @param dispatchMonthlyPressureQualifiedRateReports 压力合格率月报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchMonthlyPressureQualifiedRateReports(DispatchMonthlyPressureQualifiedRateReports dispatchMonthlyPressureQualifiedRateReports)
    {
        return dispatchMonthlyPressureQualifiedRateReportsMapper.insertDispatchMonthlyPressureQualifiedRateReports(dispatchMonthlyPressureQualifiedRateReports);
    }

    /**
     * 修改压力合格率月报
     * 
     * @param dispatchMonthlyPressureQualifiedRateReports 压力合格率月报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchMonthlyPressureQualifiedRateReports(DispatchMonthlyPressureQualifiedRateReports dispatchMonthlyPressureQualifiedRateReports)
    {
        return dispatchMonthlyPressureQualifiedRateReportsMapper.updateDispatchMonthlyPressureQualifiedRateReports(dispatchMonthlyPressureQualifiedRateReports);
    }

    /**
     * 批量删除压力合格率月报
     * 
     * @param monthlyPressureQualifiedRateReportsIds 需要删除的压力合格率月报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMonthlyPressureQualifiedRateReportsByMonthlyPressureQualifiedRateReportsIds(Long[] monthlyPressureQualifiedRateReportsIds)
    {
        return dispatchMonthlyPressureQualifiedRateReportsMapper.deleteDispatchMonthlyPressureQualifiedRateReportsByMonthlyPressureQualifiedRateReportsIds(monthlyPressureQualifiedRateReportsIds);
    }

    /**
     * 删除压力合格率月报信息
     * 
     * @param monthlyPressureQualifiedRateReportsId 压力合格率月报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMonthlyPressureQualifiedRateReportsByMonthlyPressureQualifiedRateReportsId(Long monthlyPressureQualifiedRateReportsId)
    {
        return dispatchMonthlyPressureQualifiedRateReportsMapper.deleteDispatchMonthlyPressureQualifiedRateReportsByMonthlyPressureQualifiedRateReportsId(monthlyPressureQualifiedRateReportsId);
    }
}
